export const columns = [
  { label: '', prop: 'index', width: '80px', type: 'index' },
  { label: '奖品名称', prop: 'name', width: '120px' },
  {
    label: '奖励类型',
    prop: 'type',
    type: 'select',
    options: [
      { label: '停车时长', value: 'PARKING_TIME' },
      { label: '抵消货币', value: 'OFFSET_MONEY' },
      { label: '实物礼品', value: 'PHYSICAL_GIFT' },
    ],
    width: '120px',
  },
  { label: '价值', prop: 'validityPeriod', width: '120px' },
  { label: '有效期', prop: 'expireDay', type: 'number', width: '120px' },
  // 1-时，2-分，3-秒，4-天，5-元,6-次
  {
    label: '单位',
    prop: 'validityUnits',
    type: 'select',
    options: [
      { label: '时', value: 1 },
      { label: '分', value: 2 },
      { label: '秒', value: 3 },
      { label: '天', value: 4 },
      { label: '元', value: 5 },
      { label: '次', value: 6 },
    ],
    width: '120px',
  },
  { label: '操作', prop: 'action', slotName: 'action', width: '100px', fixed: 'right' },
]

export const formOptions = [
  { label: '奖品名称', prop: 'name' },
  {
    label: '奖励类型',
    prop: 'type',
    type: 'select',
    options: [
      { label: '停车时长', value: 'PARKING_TIME' },
      { label: '抵消货币', value: 'OFFSET_MONEY' },
      { label: '实物礼品', value: 'PHYSICAL_GIFT' },
    ],
  },
  { label: '价值', prop: 'validityPeriod' },
  { label: '有效期', prop: 'expireDay', type: 'number' },
  // 1-时，2-分，3-秒，4-天，5-元,6-次
  {
    label: '单位',
    prop: 'validityUnits',
    type: 'select',
    options: [
      { label: '时', value: 1 },
      { label: '分', value: 2 },
      { label: '秒', value: 3 },
      { label: '天', value: 4 },
      { label: '元', value: 5 },
      { label: '次', value: 6 },
    ],
  },
]
